package com.zdb.demo.design.principle.openclose;

public interface ICourse {

    Integer getId();
    String getName();
    Double getPrice();

    public default String print() {
        return "课程ID:" + getId() + "，课程名称：" + getName() + ",课程价格：" + getPrice() + "元";
    }
}
